package com.wzd.learn.springcloud.service.b.biz.ref;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.wzd.learn.springcloud.service.b.annotation.CuzFeignHystrix;

@FeignClient(value = "service-A", fallback = HelloServiceFallback.class)
public interface HelloService {
	@GetMapping(value = "/hello1")
	@CuzFeignHystrix(commandKey = "serviceA")
	public String sayHello1(@RequestParam("name") String name);

	@GetMapping(value = "/hello2")
	public String sayHello2(@RequestParam("name") String name);
}
